let obj = {
    name:'csc',
    age:'18',
    arr:[1,2,3]
}


Object.prototype.myValues = function(obj) {
    let result = []
    for(let i in obj) {
        obj.hasOwnProperty(i) && result.push(obj[i])
    }
    return result
}

let a = Object.myValues(obj)
console.log(a);